<form class="operation-form-box" name="form" novalidate="novalidate">
    <div class="title">{{title}}</div>
    <img ng-src="{{closeImg.img}}" ng-click="cancel()" class="close-btn" ng-mousemove="closeImg.img=closeImg.hoverImg" ng-mouseleave="closeImg.img=closeImg.defaultImg" ng-mousedown="closeImg.img=closeImg.downImg" ng-mouseup="closeImg.img=closeImg.defaultImg" />
    <div class="form-box" ng-scrollbar>
        <ul class="main-form clear">
            <li style="padding-right:0" class="form-title">
                <span>使用信息</span><span>:</span>
            </li>
            <li>
                <span>人 员 姓 名</span><span>:</span>
                <input type="text" placeholder="人员姓名" class="name"
                       ng-model="inputObject.user" ng-disabled="!couldEdit"
                       uib-typeahead="p as p.name for p in peopleList | filter:$viewValue | limitTo:8"
                       typeahead-on-select="setFormUser()" />
            </li>
            <li ng-show="undefined!=inputObject.user && ''!=inputObject.user">
                <span>领 用 日 期</span><span>:</span>
                <div class="input-group">
                    <input type="text" placeholder="请选择日期" class="name form-control"
                           ng-model="formData.getTime" ng-disabled="!couldEdit"
                           uib-datepicker-popup="yyyy/MM/dd"
                           alt-input-formats="['yyyy/M!/d!']"
                           show-button-bar="false"
                           is-open="datePopup.opened" />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="datePopup.opened=true"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
            </li>
            <li></li>
        </ul>
        <ul class="main-form clear">
            <li style="padding-right:0" class="form-title">
                <span>基本信息</span><span>:</span>
            </li>
            <li>
                <span>资产编码</span><span>:</span>
                <input type="text" placeholder="资产编码将由系统自动生成" class="name" style="cursor: not-allowed"
                       ng-model="formData.assetCode" ng-disabled="!couldEdit" />
            </li>
            <li>
                <span>资产名称</span><span>:</span>
                <input type="text" placeholder="请输入资产名称" class="name"
                       ng-model="formData.assetName" ng-disabled="!couldEdit" />
            </li>
            <li>
                <span>资产分类</span><span>:</span>
                <select class="name"
                        ng-model="formData.assetType" ng-disabled="!couldEdit"
                        ng-options="type.id as type.name for type in assetTypeList">
                    <option value="">请选择资产分类</option>
                </select>
            </li>
            <li>
                <span>管理员</span><span>:</span>
                <input type="text" placeholder="请选择管理员" class="name"
                       ng-model="inputObject.manager" ng-disabled="!couldEdit"
                       uib-typeahead="manager as manager.name for manager in managerList | filter:{name:$viewValue} | limitTo:8"
                       typeahead-on-select="setFormManager()" />
            </li>
            <li>
                <span>品牌</span><span>:</span>
                <input type="text" placeholder="请输入品牌" class="roomNumber" name="brand"
                       ng-model="formData.brand"  ng-disabled="!couldEdit"
                       ng-class="!formData.brand && form.brand.$isTure? 'border-red-an' : '' "/>
            </li>
            <li>
                <span>型号</span><span>:</span>
                <input type="text" placeholder="型号" class="roomNumber" name="modelNumber"
                       ng-model="formData.modelNumber" ng-disabled="!couldEdit"
                       ng-class="!formData.modelNumber && form.modelNumber.$isTure? 'border-red-an' : '' "/>
            </li>
            <li>
                <span>所属/承租单位</span><span>:</span>
                <select class="roomNumber"
                        ng-model="formData.belongsCompany" ng-disabled="!couldEdit"
                        ng-options="type.id as type.name for type in assetTypeList">
                    <option value="">请选择所属单位</option>
                </select>
            </li>
            <li>
                <span>使用单位</span><span>:</span>
                <select class="roomNumber"
                        ng-model="formData.useCompany" ng-disabled="!couldEdit"
                        ng-options="type.id as type.name for type in assetTypeList"
                        ng-class="useCompany? 'border-red-an' : '' ">
                    <option value="">请选择使用单位</option>
                </select>
            </li>
            <li>
                <span>使用状况</span><span>:</span>
                <select class="roomNumber" ng-model="formData.useStatus" ng-disabled="!couldEdit">
                    <option value ="">请选择使用状况</option>
                    <option value ="正常">正常</option>
                    <option value ="故障">故障</option>
                    <option value ="维修中">维修中</option>
                </select>
            </li>
            <li>
                <span>购置/起租日期</span><span>:</span>
                <div class="input-group">
                    <input type="text" placeholder="请选择日期" class="name form-control"
                           ng-model="formData.buyTime" ng-disabled="!couldEdit"
                           uib-datepicker-popup="yyyy/MM/dd"
                           alt-input-formats="['yyyy/M!/d!']"
                           show-button-bar="false"
                           is-open="datePopup2.opened"
                           ng-class="!formData.buyTime && buyTime ? 'border-red-an' : '' "/>
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="datePopup2.opened=true"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
            </li>
            <li>
                <span>购置方式</span><span>:</span>
                <select class="roomNumber" ng-model="formData.buyType" ng-disabled="!couldEdit"
                        ng-class="!formData.buyType && buyType ? 'border-red-an' : '' ">
                    <option value ="">请选择购置方式</option>
                    <option value ="采购">采购</option>
                    <option value ="租赁">租赁</option>
                </select>
            </li>
            <li>
                <span>金额</span><span>:</span>
                <input type="text" placeholder="金额" class="phoneNumber" name="assetCost"
                       ng-model="formData.assetCost" ng-disabled="!couldEdit"
                       ng-class="!formData.assetCost && form.assetCost.$isTure? 'border-red-an' : '' "/>
            </li>
            <!--<li>
                      <span>计 量 单 位</span><span>:</span>
                      <input type="text" placeholder="计量单位" class="phoneNumber" ng-model="formData.assetUnit" name="limitAmount" required >
                  </li>-->
            <li>
                <span>使用年限</span><span>:</span>
                <div class="input-group">
                    <input type="text" placeholder="请选择日期" class="name form-control"
                           ng-model="formData.durableYears" ng-disabled="!couldEdit"
                           uib-datepicker-popup="yyyy/MM/dd"
                           alt-input-formats="['yyyy/M!/d!']"
                           show-button-bar="false"
                           is-open="datePopup3.opened" />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="datePopup3.opened=true"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
            </li>
        </ul>
        <ul class="main-form clear">
            <li class="note">
                <span>备注</span><span>:</span>
                <textarea placeholder="请输入备注" class="phoneNumber" style="resize:none"
                    ng-model="formData.remark" ng-disabled="!couldEdit"></textarea>
            </li>
            <li class="pic">
                <span>资产图片</span><span>:</span>
                <div class="pic_add">
                    <div id="assetPicPre" class="img_pre" onclick="$('input[id=assetPic]').click();">
                        <!-- <span ng-if="undefined == assetPicBase64 || assetPicBase64.length&lt;=0">点击添加图片</span>-->
                        <img ng-src="{{addImg}}" ng-if="undefined == assetPicBase64 || assetPicBase64.length&lt;=0" class="add-img">
                        <img ng-src="{{assetPicBase64}}" ng-if="assetPicBase64.length&gt;0" />
                    </div>
                    <input type="file" id="assetPic" name="assetPic" class="form_field" style="display: none;"
                           ng-model="assetPic" ng-disabled="!couldEdit"
                           onchange="angular.element(this).scope().selectImg(this)" />
                </div>
            </li>
        </ul>
        <ul class="main-table clear" ng-style="operationFlag?{height:'100%'}:{height:'0%'}">
            <li style="padding-right:0" ng-if="operationFlag"> <span>操作记录</span><span>:</span> </li>
            <li style="padding-right:0" ng-if="operationFlag">
                <list-table class="list-box" title="operationTitle" list="operationData"></list-table>
                <uib-pagination class="page" ng-change="moreOperationData()" total-items="operationPageData.totalResult" ng-model="operationPageData.currentPage" max-size="5" first-text="第一页" previous-text="上一页" next-text="下一页" last-text="最后页" boundary-links="true" boundary-link-numbers="true"></uib-pagination> </li>
        </ul>
        <ul class="btn-box">
            <li class="sure" ng-click="cancel()">
                <div class="button">关闭</div>
            </li>
            <li class="sure" ng-click="ok()">
                <div class="button">{{btnMsg}}</div>
            </li>
        </ul>
    </div>
</form>